package com.pxene.test;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.io.FileUtils;

public class FileUpload {
	public static void main(String[] args) {
		List<String> results=new ArrayList<>();
		try {
			List<String> lines = FileUtils.readLines(new File(args[0]));
			for (String each : lines) {
				results.add("1"+"\t"+each.split(",",2)[1]);
			}
			FileUtils.writeLines(new File(args[1]), "utf-8", results);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
